from django.db import models

# Create your models here.
class ProjectCase(models.Model):
    casetype = (
        (0,"HTTP接口"),
        (1,"Web Ui")
    )
    failcont = (
        (0,"中断"),
        (1,"继续")
    )
    case_id = models.IntegerField(primary_key=True,null=True,verbose_name="测试用例ID")
    case_serial_number = models.IntegerField(null=True,verbose_name="用例编号排序")
    case_sign = models.CharField(max_length=20,null=True,verbose_name="用例标识")
    case_name = models.CharField(max_length=200,null=True,verbose_name="用例名称")

    project_id = models.IntegerField(null=True,verbose_name="关联项目ID")
    module_id = models.IntegerField(null=True,verbose_name="关联项目模块ID")
    case_type = models.IntegerField(null=True,choices=casetype,default=0,verbose_name="类型")

    failcontinue = models.IntegerField(choices=failcont,default=0,verbose_name="前置步骤失败，后续步骤是否继续")
    create_by = models.CharField(max_length=64,verbose_name="创建者")
    create_time = models.DateTimeField(auto_now=True,verbose_name="创建时间")
    update_by = models.CharField(max_length=64,verbose_name="更新者")
    update_time = models.DateTimeField(auto_now=True,verbose_name="更新时间")
    remark = models.CharField(max_length=200,verbose_name="备注")